﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/QuanLy.Master" AutoEventWireup="true"
    CodeBehind="QuanLyLopHoc.aspx.cs" Inherits="DT5_Anh09110006_Hung09110044_Vu09110157.QuanLy.QuanLyLopHoc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Quản Lý Lớp Học</title>
    <style type="text/css">
         #qllh
        {
            background: url("../Image/menu_focus.png") no-repeat scroll transparent;
            color: #FFFFFF;
            left: -6px;
            padding: 19px 18px 19px 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <h1 style="padding-left: 40px">
        Quản Lý Lớp Học</h1>
    <asp:UpdatePanel runat="server">
        <contenttemplate>
    <table style="width: 100%;">

        <tr>
            <td style="padding-left: 40px">
                <asp:Button ID="btnThemLH" runat="server" CssClass="btnThem" Text="Thêm Mới" 
                    onclick="btnThemLH_Click" />
            </td>
        </tr>
        <tr>
            <td style="padding-left: 20px">
                <asp:GridView ID="grvQlLopHoc" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    ForeColor="#333333" GridLines="None"  AllowPaging="True"
                    PageSize="15" onpageindexchanging="grvQlLopHoc_PageIndexChanging" 
                    onrowcommand="grvQlLopHoc_RowCommand">
                    <Columns>
                         <asp:TemplateField>
                    <HeaderTemplate>
                        STT
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                        <asp:BoundField HeaderText="Mã Lớp Học" DataField="MaLop" />
                        <asp:BoundField HeaderText="Giáo Viên Phụ Trách" DataField="GiaoVienPT" />
                        <asp:BoundField HeaderText="Phòng Học" DataField="PhongHoc" />
                        <asp:BoundField HeaderText="Học Phí" DataField="HocPhi" />
                        <asp:BoundField HeaderText="Ngày Khai Giảng" DataField="NgayKhaiGiang" DataFormatString="{0:MM/dd/yyyy}" />
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Chức Năng</HeaderTemplate>
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" ImageUrl="~/Image/detail_16x16.gif" runat="server"
                                    CommandName="ChiTiet" CommandArgument='<%#Eval("MaLop")%>' />
                                <asp:ImageButton ID="ImageButton2" ImageUrl="~/Image/edit_16x16.gif" runat="server"
                                    CommandName="Sua" CommandArgument='<%#Eval("MaLop")%>' />
                                <asp:ImageButton ID="ImageButton3" ImageUrl="~/Image/delete_16x16.gif" CommandName="Xoa"
                                    CommandArgument='<%#Eval("MaLop")%>' runat="server"  OnClientClick="return confirm('Bạn có chắc chắn muốn xóa không');"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <AlternatingRowStyle BackColor="White" />
                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    <SortedAscendingCellStyle BackColor="#FDF5AC" />
                    <SortedAscendingHeaderStyle BackColor="#4D0000" />
                    <SortedDescendingCellStyle BackColor="#FCF6C0" />
                    <SortedDescendingHeaderStyle BackColor="#820000" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    </contenttemplate>
    </asp:UpdatePanel>
</asp:Content>
